//    # COMP 355    #  Sungho Park   10522678 sprakad@ust.hk
//    # COMP 355    #  Hwaeium Yeom   10522862 hyeom@ust.hk



package pickMeOne.android;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Main extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	String s = new String("hello");
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        View startButton = findViewById(R.id.startButton);
        startButton.setOnClickListener(this);
        View aboutButton = findViewById(R.id.aboutButton);
        aboutButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.exitButton);
        exitButton.setOnClickListener(this);
    }
    
    public void onClick(View v){
    	switch (v.getId()){
    	case R.id.exitButton:
    		finish();
    		break;
    	case R.id.aboutButton:
    		Intent i = new Intent(this, About.class);
    		startActivity(i);
    		break;
    	case R.id.startButton:
    		Intent j = new Intent(this, Pick.class);
    		startActivity(j);
    		break;
    	}
    }
    
}